#ifndef WORKER_H
#define WORKER_H

#include <QObject>
#include <QSemaphore>
#include <QDebug>
#include <QThread>
#include <QRandomGenerator>


class Worker : public QObject
{
    Q_OBJECT
public:
    explicit Worker(QSemaphore* sema,QList<int>* values,QObject *parent = nullptr);

signals:
public slots:
    void run();
private:
    QSemaphore* m_sema;
    QList<int>* m_values;
};

#endif // WORKER_H
